package com.itheima.extends6constructor;

//子类
public class Teacher extends People{
    private String skills;      //子类特有

    public Teacher(String name, String skills, char sex) {
        super(name,sex);       //在父类里,还得用父类的
        this.skills=skills;     //skills本身在子类里
    }

    public String getSkills() {
        return skills;
    }

    public void setSkills(String skills) {
        this.skills = skills;
    }
}
